package com.gonsin.gview.logic.model;

import com.gonsin.gview.annotations.model.KeyValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;
import java.util.Map;

@Data
@ApiModel("数据请求的格式")
public class DataRequest {

    @NotBlank(message = "页面唯一标识不能为空")
    @ApiModelProperty("页面唯一标识")
    private String viewName;

    @NotBlank(message = "数据Id不能为空")
    @ApiModelProperty("数据Id")
    private String dataId;

//    @ApiModelProperty("请求的内容")
//    private List<KeyValue> props;
    private Map<String, Object> props;

}
